Pod::Spec.new do |spec|
  spec.name         = "LincalSDK"
  spec.version      = "1.1.11"
  spec.summary      = "LincalSDK TEST 2021-12-20"

  spec.homepage     = "https://www.lincal.net/"
  spec.license      = "MIT"
  spec.author       = { "LLH" => "emailsAreComing@163.com" }

  spec.source       = { :git => "https://gitee.com/lincal/lincal-sdk.git", :tag => "#{spec.version}" }
  
  spec.default_subspec = 'Main'

  # 头文件 #
  spec.subspec 'Headers' do |ss|
    ss.source_files = "PLVFoundationSDK.framework/Headers/*.h"
    ss.xcconfig = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/LincalSDK/PLVFoundationSDK.framework/Headers/*.h"' }
  end

  # 完整主库 #
  spec.subspec 'Main' do |ss|
    # ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["PLVFoundationSDK.framework"]
  end

  # 模块拆分子库 #
  spec.subspec 'PLVFBaseUtils' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.dependency "LincalSDK/PLVFProgressHUD"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationBaseUtilsSDK.framework"]
  end

  spec.subspec 'PLVFJSBridge' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationJSBridgeSDK.framework"]
  end

  spec.subspec 'PLVFMarqueeView' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationMarqueeViewSDK.framework"]
  end

  spec.subspec 'PLVFOldMarqueeView' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationOldMarqueeViewSDK.framework"]
  end

  spec.subspec 'PLVFProgressHUD' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationProgressHUDSDK.framework"]
  end

  spec.subspec 'PLVFWebviewBridge' do |ss|
    ss.dependency "LincalSDK/Headers"
    ss.vendored_frameworks = ["MiniFramework/PLVFoundationWebviewBridgeSDK.framework"]
  end
    
  spec.requires_arc = true
  spec.platform = :ios, "9.0"

end
